Optimal. Leaf size=139 \[ -\frac{i b^2 \text{PolyLog}\left (2,-e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{i b^2 \text{PolyLog}\left (2,e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{b x^2 \sqrt{1-\frac{1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{2 b \tanh ^{-1}\left (e^{i \csc ^{-1}(c x)}\right ) \left (a+b \csc ^{-1}(c x)\right )}{3 c^3}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2+\frac{b^2 x}{3 c^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119006, antiderivative size = 139, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {5223, 4410, 4185, 4183, 2279, 2391} \[ -\frac{i b^2 \text{PolyLog}\left (2,-e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{i b^2 \text{PolyLog}\left (2,e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{b x^2 \sqrt{1-\frac{1}{c^2 x^2}} \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{2 b \tanh ^{-1}\left (e^{i \csc ^{-1}(c x)}\right ) \left (a+b \csc ^{-1}(c x)\right )}{3 c^3}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2+\frac{b^2 x}{3 c^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5223
Rule 4410
Rule 4185
Rule 4183
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int x^2 \left (a+b \csc ^{-1}(c x)\right )^2 \, dx &=-\frac{\operatorname{Subst}\left (\int (a+b x)^2 \cot (x) \csc ^3(x) \, dx,x,\csc ^{-1}(c x)\right )}{c^3}\\ &=\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2-\frac{(2 b) \operatorname{Subst}\left (\int (a+b x) \csc ^3(x) \, dx,x,\csc ^{-1}(c x)\right )}{3 c^3}\\ &=\frac{b^2 x}{3 c^2}+\frac{b \sqrt{1-\frac{1}{c^2 x^2}} x^2 \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2-\frac{b \operatorname{Subst}\left (\int (a+b x) \csc (x) \, dx,x,\csc ^{-1}(c x)\right )}{3 c^3}\\ &=\frac{b^2 x}{3 c^2}+\frac{b \sqrt{1-\frac{1}{c^2 x^2}} x^2 \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2+\frac{2 b \left (a+b \csc ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{b^2 \operatorname{Subst}\left (\int \log \left (1-e^{i x}\right ) \, dx,x,\csc ^{-1}(c x)\right )}{3 c^3}-\frac{b^2 \operatorname{Subst}\left (\int \log \left (1+e^{i x}\right ) \, dx,x,\csc ^{-1}(c x)\right )}{3 c^3}\\ &=\frac{b^2 x}{3 c^2}+\frac{b \sqrt{1-\frac{1}{c^2 x^2}} x^2 \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2+\frac{2 b \left (a+b \csc ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \csc ^{-1}(c x)}\right )}{3 c^3}-\frac{\left (i b^2\right ) \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{\left (i b^2\right ) \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^{i \csc ^{-1}(c x)}\right )}{3 c^3}\\ &=\frac{b^2 x}{3 c^2}+\frac{b \sqrt{1-\frac{1}{c^2 x^2}} x^2 \left (a+b \csc ^{-1}(c x)\right )}{3 c}+\frac{1}{3} x^3 \left (a+b \csc ^{-1}(c x)\right )^2+\frac{2 b \left (a+b \csc ^{-1}(c x)\right ) \tanh ^{-1}\left (e^{i \csc ^{-1}(c x)}\right )}{3 c^3}-\frac{i b^2 \text{Li}_2\left (-e^{i \csc ^{-1}(c x)}\right )}{3 c^3}+\frac{i b^2 \text{Li}_2\left (e^{i \csc ^{-1}(c x)}\right )}{3 c^3}\\ \end{align*}
Mathematica [A] time = 1.33869, size = 210, normalized size = 1.51 \[ \frac{1}{3} \left (\frac{b^2 \left (i \text{PolyLog}\left (2,e^{i \csc ^{-1}(c x)}\right )+c^3 x^3 \csc ^{-1}(c x)^2+\csc ^{-1}(c x) \left (c^2 x^2 \sqrt{1-\frac{1}{c^2 x^2}}-\log \left (1-e^{i \csc ^{-1}(c x)}\right )+\log \left (1+e^{i \csc ^{-1}(c x)}\right )\right )+c x\right )}{c^3}-\frac{i b^2 \text{PolyLog}\left (2,-e^{i \csc ^{-1}(c x)}\right )}{c^3}+a^2 x^3+\frac{a b \left (c^3 x^3+\sqrt{c^2 x^2-1} \tanh ^{-1}\left (\frac{c x}{\sqrt{c^2 x^2-1}}\right )-c x\right )}{c^4 x \sqrt{1-\frac{1}{c^2 x^2}}}+2 a b x^3 \csc ^{-1}(c x)\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.352, size = 327, normalized size = 2.4 \begin{align*}{\frac{{x}^{3}{a}^{2}}{3}}+{\frac{{x}^{3}{b}^{2} \left ({\rm arccsc} \left (cx\right ) \right ) ^{2}}{3}}+{\frac{{b}^{2}{\rm arccsc} \left (cx\right ){x}^{2}}{3\,c}\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}+{\frac{{b}^{2}x}{3\,{c}^{2}}}+{\frac{{b}^{2}{\rm arccsc} \left (cx\right )}{3\,{c}^{3}}\ln \left ( 1+{\frac{i}{cx}}+\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) }-{\frac{{\frac{i}{3}}{b}^{2}}{{c}^{3}}{\it polylog} \left ( 2,{\frac{-i}{cx}}-\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) }-{\frac{{b}^{2}{\rm arccsc} \left (cx\right )}{3\,{c}^{3}}\ln \left ( 1-{\frac{i}{cx}}-\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) }+{\frac{{\frac{i}{3}}{b}^{2}}{{c}^{3}}{\it polylog} \left ( 2,{\frac{i}{cx}}+\sqrt{1-{\frac{1}{{c}^{2}{x}^{2}}}} \right ) }+{\frac{2\,{x}^{3}ab{\rm arccsc} \left (cx\right )}{3}}+{\frac{ab{x}^{2}}{3\,c}{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}-{\frac{ab}{3\,{c}^{3}}{\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}}+{\frac{ab}{3\,{c}^{4}x}\sqrt{{c}^{2}{x}^{2}-1}\ln \left ( cx+\sqrt{{c}^{2}{x}^{2}-1} \right ){\frac{1}{\sqrt{{\frac{{c}^{2}{x}^{2}-1}{{c}^{2}{x}^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (b^{2} x^{2} \operatorname{arccsc}\left (c x\right )^{2} + 2 \, a b x^{2} \operatorname{arccsc}\left (c x\right ) + a^{2} x^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \left (a + b \operatorname{acsc}{\left (c x \right )}\right )^{2}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \operatorname{arccsc}\left (c x\right ) + a\right )}^{2} x^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]